package com.caiheng.api.service.product.impl;

import com.caiheng.api.dao.product.ProductAttrValueMapper;
import com.caiheng.api.entity.product.ProductAttrValue;
import com.caiheng.api.service.base.impl.BaseServiceImpl;
import com.caiheng.api.service.product.ProductAttrValueService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductAttrValueServiceImpl extends BaseServiceImpl<ProductAttrValueMapper, ProductAttrValue> implements ProductAttrValueService {

    @Resource
    private ProductAttrValueMapper productAttrValueMapper;

    @Override
    public List<ProductAttrValue> getAttrValuesByNameId(int attr_name_id) {
        return productAttrValueMapper.selectListByColumn("attr_name_id",attr_name_id);
    }
}
